So the purpose of my application is to pull a table check it. If anything goes under violation it grabs the job grabs the id sends it out to pager duty, pager duty responds with the incident number, the job holds that and stores in the table, and it keeps checking and pulling and when it ever stops being in violation grabs the id and goes back to pagerduty and says it is resolved now, and resolves the pagerduty incident.
Right now I am stuck on when these rows on the table ever stop being in violation grabs the id and goes to pagerduty and updates it to resolve. How would i do this if anyone has any ideas. This is written in javascript node.js.